﻿using System;

namespace XC.DataAccess.EncoderDecoder
{
    /// <summary>
    /// 类型不匹配错误
    /// </summary>
    public class TypeNotMatchException : Exception
    {
        public TypeNotMatchException(Type desertType, Type argumentType)
        {
            DesertType = desertType;
            ArgumentType = argumentType;
        }

        /// <summary>
        /// 目标类型
        /// </summary>
        public Type DesertType { get; set; }
        /// <summary>
        /// 参数类型
        /// </summary>
        public Type ArgumentType { get; set; }
    }
}
